<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
							<button shiro:hasPermission="commanderList:printer:add" type="button" class="btn btn-primary" onclick="add()">
								<i class="fa fa-plus" aria-hidden="true"></i>添加
							</button>
						</div>
						<div class="columns pull-right" role="group">
							<button class="btn btn-success" onclick="reLoad()">
								<i class="fa fa-search" aria-hidden="true"></i>查询
							</button>
						</div>
						<!--<div class="pull-right search col-md-2 nopadding">-->
							<!--<input id="type" type="text" class="form-control" placeholder="喇叭类型">-->
						<!--</div>-->

						<div class="columns pull-right col-md-1 nopadding">
							<select data-placeholder="是否使用" class="form-control chosen-select" id="isUse" tabindex="2">
								<option value="">选择状态</option>
								<option value="0">正在使用</option>
								<option value="1">停用</option>
							</select>
						</div>

						<input type="hidden" name="centreId" th:value="${centreId}" th:if="${flag} == '1'">
						<!--<div class="columns pull-right col-md-2 nopadding" th:if="${flag} == '0'">-->
							<!--<select data-placeholder="商户" class="form-control chosen-select" name="centreId" tabindex="2">-->
								<!--<option value="">选择商户</option>-->
								<!--<option th:each="item: ${centreList}" th:text="${item.name}" th:value="${item.centreId}"></option>-->
							<!--</select>-->
						<!--</div>-->
						<input type="hidden" name="teamId" th:value="${teamId}" th:if="${teamFlag} == '1'">
						<div class="columns pull-right col-md-2 nopadding" th:if="${teamFlag} == '0'">
							<select data-placeholder="商户" class="form-control chosen-select" name="teamId" tabindex="2">
								<option value="">选择门店</option>
								<option th:each="item: ${teamList}" th:text="${item.tXiaoqu}" th:value="${item.teamid}"></option>
							</select>
						</div>
					</div>
					<table id="ticketTable" data-mobile-responsive="true"></table>
				</div>
			</div>
		</div>
	</div>
	<div>
		<script type="text/javascript">
			var s_edit_h = 'hidden';
			var s_remove_h = 'hidden';
		</script>
	</div>
	<div shiro:hasPermission="commanderList:horn:edit">
		<script type="text/javascript">
			s_edit_h = '';
		</script>
	</div>
	<div shiro:hasPermission="commanderList:horn:remove">
		<script type="text/javascript">
			s_remove_h = '';
		</script>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" src="/js/appjs/commander/horn/hornList.js"></script>
</body>
</html>